package be.tf.freemaind.model;




public class User {

// create class that reimplement the valueOf() conversion method :
// in case of, the value retrieved from the db, does not correspond to the one implemented 
// in the enum object.
	public enum Role {
		REDAC, ADMIN
	};
	
//	public enum SexType {
//		M,F
//	};
	
	private Long iduser;
	private String name;
	private String password;
	//private String firstname;
	//private String lastname;
	private String email;
	//private Date lastConnectionDate;
	private Role role;
	//private SexType sexe;

	public User(){
		super();
	}
	

	public Long getIduser() {
		return iduser;
	}

	public void setIduser(Long iduser) {
		this.iduser = iduser;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	public String getRole() {
		
		return this.role.toString();
	}

	public void setRole(Role role) {
		this.role = role;
	}

/*	public SexType getSexe() {
		return sexe;
	}

	public void setSexe(SexType sexe) {
		this.sexe = sexe;
	}
*/

}
